<div class="panel panel-inverse" data-sortable-id="table-basic-4">
    <div class="panel-heading">
        <@shiro.hasPermission name="/user/add">
        <div class="panel-heading-btn btn-group m-r-20 m-b-5">
            <a href="javascript:;" data-toggle="dropdown" class="btn btn-warning btn-sm dropdown-toggle"><i
                    class="fa fa-cogs"></i></a>
            <ul class="dropdown-menu">
                <li>
                    <a href="javascript:getData('${rc.contextPath}/user/add','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')"><i
                            class="fa fa-plus m-r-5"></i>新增</a></li>
            </ul>
        </div>
    </@shiro.hasPermission>
    <h4 class="panel-title">账户列表</h4>
</div>

<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>账户编号</th>
                <th>账户名称</th>
                <th>所属平台</th>
                <th>是否有效</th>
                <th>激活状态</th>
                <th>真实姓名</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <#if paginationResponse?has_content && paginationResponse.content?exists>
            <#list paginationResponse.content as ct>
            <tr>
                <td>${ct.accountKey}</td>
                <td>${ct.accountName}</td>
                <td>
                    <#if ct.tPlatform.name != null>
                    ${ct.tPlatform.name}
                    <#else>
                    全平台
                </#if>
                </td>
                <td>
                    <#if ct.accountStatus == 0>
                    <span class="label label-default">无效</span>
                    <#else>
                    <span class="label label-primary">有效</span>
                </#if>
                </td>
                <td>
                    <#if ct.isActive == 0>
                    <span class="label label-danger">未激活</span>
                    <#else>
                    <span class="label label-success">已激活</span>
                </#if>
                </td>
                <td>${ct.realName}</td>
                <td>${ct.createDate}</td>
                <td>
                    <div class="btn-group m-r-5 m-b-5">
                        <a href="javascript:;" data-toggle="dropdown" class="btn btn-default btn-sm dropdown-toggle"><i
                                class="fa fa-bars"></i></a>
                        <ul class="dropdown-menu">
                            <@shiro.hasPermission name="/user/edit">
                            <li>
                                <a href="javascript:getData('${rc.contextPath}/user/edit/${ct.accountKey}','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')"><i
                                        class="fa fa-edit m-r-5"></i>修改</a></li>
                            <li class="divider"></li>
                        </@shiro.hasPermission>
                        <@shiro.hasPermission name="/user/delete">
                        <li>
                            <a href="javascript:getConfirmData('确定删除该账户吗?','${rc.contextPath}/user/delete/${ct.accountKey}','${shiroUserHelper.getCurrentShiroUser().parentMenuSource.name}')"><i
                                    class="fa fa-minus m-r-5"></i>删除</a></li>
                    </@shiro.hasPermission>
                    </ul>
    </div>
    </td>
    </tr>
</#list>
</#if>
</table>
</div>
</div>
</div>

<!-- 分页组件 -->
<!-- recordBean 分页查询结果Bean
     action 分页请求URL
     formName 分页需要的查询参数的表单名称 -->
<@sp.pagination recordBean=paginationResponse action="${rc.contextPath}/user/list" formName="accountForm" area="accountList"/>